﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using RobotBattle2.Scripting;

namespace RobotBattle2 {
	public abstract class ScriptParserBase {
		public virtual Script LoadScript(string filename) {
			using (var reader = File.OpenText(filename)) {
				return LoadScript(reader, filename);
			}
		}
		public abstract Script LoadScript(TextReader reader, string filename);
	}
}
